package com.ruoyi.plus.pub.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.plus.pub.domain.PubResources;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 资源Mapper接口
 */
@Repository
public interface PubResourcesMapper extends BaseMapper<PubResources> {

    /**
     * 查询资源列表
     *
     * @param pubResources 资源
     * @return 资源集合
     */
    List<PubResources> selectPubResourcesList(PubResources pubResources);

    List<PubResources> checkRepeat(@Param("name") String name, @Param("resourceClassId") Long resourceClassId);
}
